package com.dyh.quickdemo.bizDemo.PlatformSplit;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import org.assertj.core.util.Lists;
import org.junit.jupiter.api.Test;

import java.util.List;

/*
@Author=Joey Wheeler
@Date=2020/11/30 16:35
*/
public class M4 {
    interface A{
        void a();
    }

    abstract interface A1 extends A{}
    abstract interface A2 extends A{}

    abstract class B{}

    class C extends B implements A1 {

        @Override
        public void a() {

        }
    }

    @Setter@Getter
    class LeqeeResponse{
        List<String> error;
    }



    @Test
    public void test1(){

        LeqeeResponse leqeeResponse = new LeqeeResponse();
        leqeeResponse.setError(Lists.newArrayList("dawdawd"));

        System.out.println(leqeeResponse.getError().toString().contains("dawdawd"));
        System.out.println(leqeeResponse.toString().contains("dawdawd"));

        JSONObject jo = new JSONObject();
        jo.put("error","dawd");

        System.out.println(jo.toString().contains("dawd"));
    }

    @Test
    public void test(){
        C c = new C();

        System.out.println(c instanceof C);
        System.out.println(c instanceof A);
        System.out.println(c instanceof A1);
        System.out.println(c instanceof A2);
        System.out.println(c instanceof B);
      //  System.out.println(c instanceof A2);

        //System.out.println(c instanceof B);
    }
}
